function WebAppController(){
	
	this.handler = function(){
		
		var user = request.getAttr("user");
		
		this.get = function(){
			if(user){		
				alert(user.services.toSource())
				var userServiceObj = db.services.get({where: {guid: user.services}});
				if(userServiceObj){
					var subscribeList = ["<h3>Services</h3>", "<ul id=subscribe-list>"];
					userServiceObj.forEach(function(row){
						subscribeList.push("<li><img src=/static/i/rss-feed-icon-20.png class=icon alt='' border=0 />" + 
							"<a href=/ashafa/service/" + row.value.guid + ">" +
							((row.value.name.length > 30) ? row.value.name.substr(0, 30) + "..." : row.value.name) + "</a>");
					});
					subscribeList.push("</ul>");
					subscribeList.push("<p><a href=/ashafa/add-service> + add service</a></p>");
					
					$("#sidenav").append(subscribeList.join(""));
				}
			}
			
		}
		
		this.post = function(){
			this.get();
		}
		
			
	}
	
}